package com.atguigu;

import org.springframework.stereotype.Component;

/**
 * @author 赵星
 * @version 1.0
 * @Date 2023/12/19 16:36
 */
@Component
public class UserBean {
    public String getUserName(int id) {
        if (id == 1) {
            return "zhangsan";
        } else if (id == 2) {
            return "lisi";
        } else  {
            return "admin";
        }
    }
}
